package com.avic.map.common.model.enums;

/**
 * @Author huangsheng on 2018/12/22
 */
public enum MapTaggingEnums {

    FIRE(1, "着火点"),

    INIT_SOLDIER(5, "预设单兵"),

    NON_UNIT_soldier(4, "非本单位单兵"),

    INIT_CAR(19, "预设车辆"),

    NON_UNIT_CAR(18, "非本单位车辆"),

    UAV(20, "无人机");

    private Integer type;

    private String describe;

    MapTaggingEnums(Integer type, String describe) {
        this.type = type;
        this.describe = describe;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public static MapTaggingEnums getMapTaggingEnumsByType(int type) {
        for (MapTaggingEnums mapTaggingEnums : MapTaggingEnums.values()) {
            if (mapTaggingEnums.getType() == type) {
                return mapTaggingEnums;
            }
        }
        return null;
    }

}
